package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.mybatisplus.model.domain.AdminInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplus.service.AdminInfoService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * ����Ա��Ϣ�� Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2023-10-16
 */
@Repository
public interface AdminInfoMapper extends BaseMapper<AdminInfo> {
//    AdminInfo selectByPhone(AdminInfo admin);
    List<AdminInfo> getAllUsers();
    List<AdminInfo> findAdminByPageAndLimit(Integer page, Integer limit);
    Integer addAdmins(@Param("admin") AdminInfo admin);
    
    Integer deleteAdminById(@Param("AdminId")  AdminInfo adminId);

    Integer updateAdminById(@Param("UpdateAdmin") AdminInfo admin);
    Integer deleteAdmins(String[] ids);
    List getAdminInfoByPhone(String admin_phone);

    List findAdminByName(@Param("select")String adminName);

    AdminInfo AdminLogin(String adminPhone, String adminPassword);
}
